<!DOCTYPE html>
<html>
  <head>
    <title>#{title}</title>
    <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="description" content="">

<link rel="stylesheet" href="../lib/weui.min.css">
<link rel="stylesheet" href="../css/jquery-weui.css">
<link rel="stylesheet" href="../css/home.css">
<link rel="stylesheet" href="../plugins/fontaw/css/font-awesome.css">
<style>
.weui-tabbar__label{font-size: 0.7rem}
</style>
  </head>

  <body ontouchstart>
    <div class="weui-tab">
      <div class="weui-tab__bd" id="tabContain">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">

        </div>
        <div id="tab2" class="weui-tab__bd-item">
          <h1>页面二</h1>
        </div>
        <div id="tab4" class="weui-tab__bd-item">

        </div>
      </div>

      <div class="weui-tabbar">
        <a href="#tab1" class="weui-tabbar__item weui-bar__item--on" link="studio/studio_index.html">
          <span class="weui-badge" style="position: absolute;top: -.4em;right: 2em;">8</span>
          <div class="weui-tabbar__icon">
            <img src="./images/icon_nav_button.png" alt="">
          </div>
          <p class="weui-tabbar__label">工作室</p>
        </a>
        <a href="#tab2" class="weui-tabbar__item">
          <div class="weui-tabbar__icon">
            <img src="./images/icon_nav_msg.png" alt="">
          </div>
          <p class="weui-tabbar__label">经典</p>
        </a>
        <a href="#tab4" class="weui-tabbar__item" link="me/me_index.html">
          <div class="weui-tabbar__icon">
            <img src="./images/icon_nav_cell.png" alt="">
          </div>
          <p class="weui-tabbar__label">我的</p>
        </a>
      </div>
    </div>

<script src="/lib/jquery-2.1.4.js"></script>
<script src="/lib/fastclick.js"></script>
<script src="/js/home.js"></script>
<script>

    window.onpopstate=function(e){
       console.log(e);
    }

  $(function() {
    FastClick.attach(document.body);
      ajaxPage($("#tab1"),"studio/studio_index.html");
  });

    $(".weui-tabbar a").click(function(){
        var tab =$(this).attr("href");
        ajaxPage($(tab),$(this).attr("link"));
    });
</script>
<script src="../js/jquery-weui.js"></script>
 </body>
</html>
